from django.db import models

# Create your models here.

# todo 教练注册表
class coach_register(models.Model):
    coach=models.CharField(max_length=100,verbose_name="教练姓名")
    age=models.CharField(max_length=100,verbose_name="教练年龄")
    gender=models.CharField(max_length=100,verbose_name="教练性别")
    phone=models.CharField(max_length=100,verbose_name="教练电话")

#todo 学员注册表
class student_register(models.Model):
    name = models.CharField(max_length=100, verbose_name="学员姓名")
    age = models.CharField(max_length=100, verbose_name="学员年龄")
    gender = models.CharField(max_length=100, verbose_name="学员性别")
    phone = models.CharField(max_length=100, verbose_name="学员电话")

# todo 学员预约训练表
class student_train(models.Model):
    name=models.CharField(max_length=100,verbose_name="学员姓名")
    phone=models.CharField(max_length=100,verbose_name="学员电话")
    subject=models.CharField(max_length=100,verbose_name="预约科目")
    session=models.CharField(max_length=100,verbose_name="预约时间")

# todo 教练授课记录
class coach_teach(models.Model):
    coach=models.CharField(max_length=100,verbose_name="教练姓名")
    age=models.CharField(max_length=100,verbose_name="教练年龄")
    ground=models.CharField(max_length=100,verbose_name="训练场地")
    class_subject=models.CharField(max_length=100,verbose_name="授课科目")
    class_time=models.CharField(max_length=100,verbose_name="授课时间")
    coach_comment=models.CharField(max_length=100,verbose_name="教练评价")


# todo 学员训练记录表
class student_teach(models.Model):
    name=models.CharField(max_length=100,verbose_name="学员姓名")
    age=models.CharField(max_length=100,verbose_name="学员年龄")
    ground=models.CharField(max_length=100,verbose_name="训练场地")
    train_subject=models.CharField(max_length=100,verbose_name="训练科目")
    train_time=models.CharField(max_length=100,verbose_name="训练时间")
    coach=models.ForeignKey(coach_teach,on_delete=models.SET_NULL,null=True)
    name_comment=models.CharField(max_length=100,verbose_name="学员评价")

# todo 学员预约考试时间表
class student_test(models.Model):
    name=models.CharField(max_length=100,verbose_name="学员姓名")
    age=models.CharField(max_length=100,verbose_name="学员年龄")
    subject=models.CharField(max_length=100,verbose_name="考试科目")
    session=models.CharField(max_length=100,verbose_name="预约考试时间")

# todo 科目考试结果表
class test_result(models.Model):
    name=models.CharField(max_length=100,verbose_name="学员姓名")
    subject=models.CharField(max_length=100,verbose_name="科目")
    test_time=models.CharField(max_length=100,verbose_name="考试时间")
    is_pass=models.BooleanField(verbose_name="考试是否通过")

